#include <iostream>
using namespace std;

int main()
{
	int k;
	int n;
	double sum = 0.0;
	cin >> k;
	for(int i = 1;;i++){
		sum = sum + 1.0 / i;
//		cout << sum << "_____" << endl;
		if(sum > k)
		{
			n = i;
			break;
		}
	}
	cout << n << endl;
	
	return 0;
}
